//
//  TouchMoveView.m
//  段子手
//
//  Created by dllo on 16/3/20.
//  Copyright © 2016年 JokesTeam. All rights reserved.
//

#import "TouchMoveView.h"

@implementation TouchMoveView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        
    }
    return self;
}

//- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
//    
//    UITouch *touch = [touches anyObject];
//    CGPoint point1 = [touch locationInView:self];
//    CGPoint point2 = [touch previousLocationInView:self];
//    
//    
//    self.center = CGPointMake(point1.x - point2.x + self.center.x, point1.y - point2.y + self.center.y);
////    self.currentCenter = CGPointMake(point1.x - point2.x + self.center.x, point1.y - point2.y + self.center.y);
//    
//}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
